package com.hxh.crud.dao;

import com.hxh.crud.bean.Employee;
import com.hxh.crud.bean.EmployeeExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface EmployeeMapper {
    long countByExample(EmployeeExample example);

    int deleteByExample(EmployeeExample example);

    int deleteByPrimaryKey(String empId);

    void insert(Employee record);

    void insertSelective(Employee record);

    List<Employee> selectByExample(EmployeeExample example);

    List<Employee> selectByExampleWithDept(EmployeeExample example);

    Employee selectByPrimaryKey(String empId);

    Employee selectByPrimaryKeyWithDept(String empId);

    void updateByExampleSelective(@Param("record") Employee record, @Param("example") EmployeeExample example);

    void updateByExample(@Param("record") Employee record, @Param("example") EmployeeExample example);

    void updateByPrimaryKeySelective(Employee record);

    void updateByPrimaryKey(Employee record);
}